﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hopscotch.Presentation.Controls.DataProviders;
using Hopscotch.Common.Contracts.AppService;
using Hopscotch.Domain.Finance;
using Hopscotch.Presentation.Common;

namespace Hopscotch.Presentation.TradeModule.Services
{
	public class PriceControlDataProvider : IPriceControlDataProvider
	{
		private readonly ICurrencyInstrumentService currencyInstrumentService;

		public PriceControlDataProvider(ICurrencyInstrumentService currencyInstrumentService)
		{
			this.currencyInstrumentService = currencyInstrumentService;
		}

		public ICollection<CurrencyInstrument> GetCurrencyList()
		{
			return currencyInstrumentService.GetAll();
		}

		public Domain.Finance.CurrencyInstrument Get(string code)
		{
			return currencyInstrumentService.Get(code);
		}
	}
}
